import {request} from "./request";

export function check(user,pass) {
    return request({
        method:'post',
        url:"/check",
        data:{
            user:user,
            pass:pass
        }
    })
}

export function getbooks(user_id) {
    return request({
        method:'post',
        url:"/advert_book",
        data:{
            user_id:user_id,
        }
    })
}

export function gettime(user_id) {
    return request({
        method:'post',
        url:"/get_time",
        data:{
            user_id:user_id,
        }
    })
}

export function addtime(book_id) {
    return request({
        method:'post',
        url:"/add_time",
        data:{
            book_id:book_id,
        }
    })
}